﻿using System;
using System.Threading;
using repliback4.Net.ClientSide;
using System.Text;
using repliback4.Misc;

namespace testapp2 {
    class Program {
        public static EventWaitHandle wh = new EventWaitHandle( false, EventResetMode.AutoReset );
        static void Main ( string[] args ) {
            Console.OutputEncoding = Encoding.UTF8;
            Console.WindowWidth = 160;
            testServer( );
            Console.ReadKey( );
        }

        private static void testServer ( ) {

            repliback4.Net.ServerSide.ServerSettings settings = new repliback4.Net.ServerSide.ServerSettings(new ConfigFile ("cfg.xml", "server"));
            
            repliback4.Net.ServerSide.Server server = new repliback4.Net.ServerSide.Server( settings );
            server.Start( );

        }


    }
}
